
########################################################################################################################################################################
####### Replication file for Citizen Preferences about Border Arrangements in Divided Societies: Evidence from a Conjoint Experiment in Northern Ireland
########################################################################################################################################################################



** Figure 2 Effect of border arrangements on Northern Irish respondents by community


reg selected i.location i.checks i.control i.mantain i.compensation if q2==1, cl(id)
est store unionists

reg selected i.location i.checks i.control i.mantain i.compensation if q2==2, cl(id)
est store nationalists
coefplot unionists nationalists, base

** Table A1 Full estimates for the models reported in Figure 2

*outreg2 [unionists nationalists] using Appendix.doc,  label(proper) word dec(2)  ci replace 


** Table 2 Simulations of support for border arrangements 

*#SIMULATIONS 

 * 1  **** No deal **** 

reg selected  exitports landborder nochecks electonly atdepots electandphys  mixed users EI shared five ten , vce(cluster id) 
lincom _cons  +landborder
reg selected  exitports landborder nochecks electonly atdepots electandphys  mixed users EI shared five ten if q2==1 , vce(cluster id) 
lincom _cons  +landborder
reg selected  exitports landborder nochecks electonly atdepots electandphys  mixed users EI shared five ten if q2==2 , vce(cluster id) 
lincom _cons  +landborder

 * 2 North South, mild checks
 reg selected  exitports landborder nochecks electonly atdepots electandphys  mixed users EI shared five ten , vce(cluster id) 
lincom _cons  +landborder +electonly +mixed +shared

* Nationalist*****	
reg selected  exitports landborder nochecks electonly atdepots electandphys  mixed users EI shared five ten if q2==2 , vce(cluster id) 
lincom _cons  +landborder +electonly +mixed +shared

* Unionists *****	
reg selected  exitports landborder nochecks electonly atdepots electandphys  mixed users EI shared five ten if q2==1, vce(cluster id) 
lincom _cons  +landborder +electonly +mixed +shared


	
 * 3 *** East-West mild checks --- ENTRY

reg selected  exitports landborder nochecks electonly atdepots electandphys  mixed users EI shared five ten , vce(cluster id) 
lincom _cons   +electonly +mixed +shared

* Nationalist*****	
reg selected  exitports landborder nochecks electonly atdepots electandphys  mixed users EI shared five ten if q2==2 , vce(cluster id) 
lincom _cons   +electonly +mixed +shared

* Unionists *****	
reg selected  exitports landborder nochecks electonly atdepots electandphys  mixed users EI shared five ten if q2==1, vce(cluster id) 
lincom _cons   +electonly +mixed +shared


	
 * 4   East-West Intrusive checks 

reg selected  exitports landborder nochecks electonly atdepots electandphys  mixed users EI shared five ten , vce(cluster id) 
lincom _cons  +exitports +electandphys +mixed +shared

* Nationalist*****	
reg selected  exitports landborder nochecks electonly atdepots electandphys  mixed users EI shared five ten if q2==2 , vce(cluster id) 
lincom _cons  +exitports +electandphys +mixed +shared

* Unionists *****	
reg selected  exitports landborder nochecks electonly atdepots electandphys  mixed users EI shared five ten if q2==1, vce(cluster id) 
lincom _cons  +exitports +electandphys +mixed +shared


 * 5 **** East-West  Intrusive checks BUT compensation

reg selected  exitports landborder nochecks electonly atdepots electandphys  mixed users EI shared five ten , vce(cluster id) 
lincom _cons  +exitports +electandphys +mixed +shared +ten

* Nationalist*****	
reg selected  exitports landborder nochecks electonly atdepots electandphys  mixed users EI shared five ten if q2==2 , vce(cluster id) 
lincom _cons  +exitports +electandphys +mixed +shared +ten

* Unionists *****	
reg selected  exitports landborder nochecks electonly atdepots electandphys  mixed users EI shared five ten if q2==1, vce(cluster id) 
lincom _cons  +exitports +electandphys +mixed +shared +ten




** Figure A1 Sampling weight by community. Weighted versus unweighted samples


reg selected i.location i.checks i.control i.mantain i.compensation if q2==1, cl(id)
est store unwuni
reg selected i.location i.checks i.control i.mantain i.compensation [pweight=w] if q2==1, cl(id)
est store wuni
coefplot unwuni wuni , base

reg selected i.location i.checks i.control i.mantain i.compensation if q2==2 , cl(id)
est store unwnat
reg selected i.location i.checks i.control i.mantain i.compensation [pweight=w] if q2==2, cl(id)
est store wnat
coefplot unwnat wnat , base

coefplot unwuni wuni unwnat wnat , base

**Figure 2A Models with controls: Unionists 


reg selected i.location i.checks i.control i.mantain i.compensation sex edu_binary i.income if q2==1, cl(id)
est store controlsunionists
coefplot  unionists controlsunionists, base

**Figure 3A. Models with controls: Nationalists


reg selected i.location i.checks i.control i.mantain i.compensation sex edu_binary i.income if q2==2, cl(id)
est store controlsnationalists

coefplot  nationalists controlsnationalists, base

*** Table 2A - Multiplicative interaction by community 




reg selected i.location##i.community3  i.checks##i.community3 i.control##i.community3 i.mantain##i.community3 i.compensation##i.community3  , cl(id)
est store interaction
*outreg2 [interaction] using Appendix_interaction.doc,  label(proper) word dec(2)  ci replace 

